// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './LoginApp'
import router from './router'
import 'font-awesome/less/font-awesome.less'
import './less/common.less'
import store from './store'
import _ from 'lodash'
Vue.config.productionTip = false
import Login from './components/login'
Vue.component(Login.name,Login)

import {Loading,MessageBox,Notification,Message,
	Card,
	Col,
	Table,
	TableColumn,
	RadioGroup,
	RadioButton,
	Tooltip,
	Form,
  FormItem,
  Input,
  InputNumber,
  Select,
  Option,
  OptionGroup,
  Button,
  ButtonGroup,
  Checkbox,  
  Row,
  Pagination,
  Dialog
} from 'element-ui'
Vue.use(Card)
Vue.use(Col)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(RadioGroup)
Vue.use(RadioButton)
Vue.use(Tooltip)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(InputNumber)
Vue.use(Select)
Vue.use(Option)
Vue.use(OptionGroup)
Vue.use(TableColumn)
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Loading)
Vue.use(Checkbox)
Vue.use(Row)
Vue.use(Pagination)
Vue.use(Dialog)

Vue.prototype.$loading = Loading.service
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$notify = Notification
Vue.prototype.$message = Message

/* eslint-disable no-new */
window.vm = new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
